
public class Xx {
	public static void main(String[] args) {
		int [] arr= {21, 5,94,1,33};
		int max=name(arr);
		System.out.println(max);
	}
	public static int name(int []arr) {
		int max=arr[0];
		for (int i = 0; i < arr.length; i++) {
			if(max<arr[i]) {
				max=arr[i];
			}
		}
		return max;
	}
}
